export function getUuid() {
    return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
        const r = (Math.random() * 16) | 0,
            v = c == "x" ? r : (r & 0x3) | 0x8;
        return v.toString(16);
    });
}

export function generateUniqueId() {
    const timestamp = Date.now();  // 当前时间戳
    const randomNum = Math.floor(Math.random() * 1000000);  // 随机数字
    return `${timestamp}${randomNum}`;  // 拼接时间戳和随机数字
}

